﻿@semy = 0.25
@third = @[1/3]
@fifth = @[1/5]
@sixth = @[1/6]

@canton_scale_cross_x = @[ ( 333 / 768 ) + 0.001 ]
@canton_scale_cross_y = @[ ( 205 / 512 ) + 0.001 ]

@canton_scale_sweden_x = @[ ( 255 / 768 ) + 0.001 ]
@canton_scale_sweden_y = @[ ( 204 / 512 ) + 0.001 ]

@uru_canton_height = 0.556
@NZL_coa_offset = @[3/16] 
@sm_fra = 0.16

@pi = 3.1416

## Arabia, Anatolia, and the Iranian Plateau


## Arabia WB originals

ARA_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_shahada.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 0.5 0.5 } }
	}
}

ARA_dictatorship = { # adapted from HoI4
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "green"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_shahada_and_sword.dds"
		color1 = "white"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 0.5 0.45 } }
	}
}

ARA_communist = { # adapted from HoI4
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_coa_frame_ddr.dds"
		color1 = "yellow"
		color2 = "green"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.53 } }					
	}
	colored_emblem = {
		texture = "ce_frame_ddr_flags_tricolour.dds"
		color1 = "red"
		color2 = "white"
		color3 = "black"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.53 } }					
	}
 	colored_emblem = {
		texture = "ce_frame_star.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }					
	}
}

## Arabia placeholder

ARA_EGY = {
	# One of the proposed flags for the Republic of Egypt
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0 0.5 } }
	}
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.55 0.5 } position = { 0.16 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.1 0.1 } position = { 0.29 0.5 } }			
		instance = { scale = { 0.1 0.1 } position = { 0.23 0.42 } }	
		instance = { scale = { 0.1 -0.1 } position = { 0.23 0.58 } }		
	}
	
	sub = {
        parent = "Egypt_WB_portrait" 
    }
}
ARA_EGY_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
 	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.25 0.25 } position = { 0.33 0.5 } }
		instance = { scale = { 0.25 0.25 } position = { 0.66 0.5 } }					
	}	
	
	sub = {
        parent = "Egypt_WB_republican_portrait" 
    }
}

ARA_EGY_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_coa_frame_ddr.dds"
		color1 = "yellow"
		color2 = "green"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.53 } }					
	}
	colored_emblem = {
		texture = "ce_frame_ddr_flags_tricolour.dds"
		color1 = "red"
		color2 = "white"
		color3 = "black"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.53 } }					
	}
 	colored_emblem = {
		texture = "ce_frame_star.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }					
	}	
	
	sub = {
        parent = "Egypt_WB_communist_portrait" 
    }
}

ARA_EGY_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	#colored_emblem = {
	#	texture = "ce_shahada.dds"
	#	color1 = "red"
	#	color2 = "red"
	#	instance = { position = { 0.5 0.5 } scale = { 0.5 0.5 } }
	#}
	
	sub = {
        parent = "Egypt_WB_portrait" 
    }
}

ARA_EGY_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "green"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "grey"
		color2 = "grey"
		instance = { scale = { 0.24 0.24 } position = { 0.395 0.73 } }
		instance = { scale = { 0.24 0.24 } position = { 0.605 0.73 } }		
	}	
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.39 0.725 } }
		instance = { scale = { 0.2 0.2 } position = { 0.60 0.725 } }		
	}	
 	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.30 } rotation = 270 position = { 0.5 0.52 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.06 0.06 } position = { 0.5 0.44 } }			
		instance = { scale = { 0.06 0.06 } position = { 0.48 0.49 } }	
		instance = { scale = { 0.06 0.06 } position = { 0.52 0.49 } }		
	}

	sub = {
        parent = "Egypt_WB_fascist_portrait" 
    }
}

ARA_mamluk_sultanate = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0 0.5 } }
	}
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.5 0.5 } position = { 0.2 0.5 } }					
	}
	
	sub = {
        parent = "Memeluks_WB_portrait" 
    }
}


## Egypt ##

Egypt_WB_portrait = {
	textured_emblem = {
		texture = "wb_egy_monarch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.52 0.72 } }
	}
}

Egypt_WB_subject_portrait = {
	textured_emblem = {
		texture = "wb_egy_puppet.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.72 0.6 } }
	}
}

Egypt_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_egy_repub.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.5 0.6 } }
	}
}

Egypt_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_egy_comm.dds"
		instance = { scale = { 1.8 1.8 } position = { 0.53 0.83 } }
	}
}

Egypt_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_egy_fasch.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.5 0.59 } }
	}
}

Memeluks_WB_portrait = {
	textured_emblem = {
		texture = "wb_egy_monarch_memeluks_alt.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.45 0.61 } }
	}
}

EGY = { # Egypt
	# 1923-58
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.3 } rotation = -270 position = { 0.70 0.5 } }			
		instance = { scale = { 0.2 0.2 } position = { 0.55 0.38 } }	
		instance = { scale = { 0.2 -0.2 } position = { 0.55 0.62 } }		
	}		
	
	sub = {
        parent = "Egypt_WB_portrait" 
    }
}
EGY_absolute_monarchy = {
	# Late 19th c. design - Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.28 } }		
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.72 } }		
		instance = { scale = { 0.22 0.22 } position = { 0.6 0.5 } }	
	}

	sub = {
        parent = "Egypt_WB_portrait" 
    }
}
EGY_republic = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}

	sub = {
        parent = "Egypt_WB_republican_portrait" 
    }
}
EGY_dictatorship = {
	# 1958 revolution
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "grey"
		color2 = "grey"
		instance = { scale = { 0.24 0.24 } position = { 0.395 0.73 } }
		instance = { scale = { 0.24 0.24 } position = { 0.605 0.73 } }		
	}	
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.39 0.725 } }
		instance = { scale = { 0.2 0.2 } position = { 0.60 0.725 } }		
	}	
 	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.30 } rotation = 270 position = { 0.5 0.52 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.06 0.06 } position = { 0.5 0.44 } }			
		instance = { scale = { 0.06 0.06 } position = { 0.48 0.49 } }	
		instance = { scale = { 0.06 0.06 } position = { 0.52 0.49 } }		
	}

	sub = {
        parent = "Egypt_WB_fascist_portrait" 
    }
}
EGY_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
    sub = {
        parent = "sub_EGY" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }
    }

	sub = {
        parent = "Egypt_WB_subject_portrait" 
    }	
}
EGY_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
    sub = {
        parent = "sub_EGY_early" 
        instance = { scale = { 0.45 0.45 } offset = { 0.525 0.275 }  }
		color1 = "blue"
		color2 = "red"
    }

	sub = {
        parent = "Egypt_WB_subject_portrait" 
    }	
}

# WB originals

EGY_communist = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	
			
	colored_emblem = {
		texture = "ce_coa_frame_austria.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "red"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }	
	}
	
	colored_emblem = {
		texture = "ce_frame_ddr_flags_tricolour.dds"
		color1 = "red"
		color2 = "white"
		color3 = "black"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } }
	}
	
 	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
 	

	sub = {
        parent = "Egypt_WB_communist_portrait" 
    }
}


EGY_anarchist = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "black"
	color2 = "red"	
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.3 } rotation = -270 position = { 0.70 0.5 } }			
		instance = { scale = { 0.2 0.2 } position = { 0.55 0.38 } }	
		instance = { scale = { 0.2 -0.2 } position = { 0.55 0.62 } }		
	}
	
	sub = {
        parent = "Egypt_WB_communist_portrait" 
    }
}

EGY_khedivate_muhd_ali = {
	# 1844-1867 flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.85 } position = { 0.45 0.5 } }					
	}
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.55 0.5 } }
	}

	sub = {
        parent = "Egypt_WB_portrait" 
    }
}

EGY_khedivate_post_1867 = {
	# 1867-1881 flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.7 0.7 } position = { 0.4 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.1 0.26 } rotation = -270 position = { 0.73 0.5 } }			
		instance = { scale = { 0.16 0.16 } position = { 0.61 0.38 } }	
		instance = { scale = { 0.16 -0.16 } position = { 0.61 0.62 } }		
	}

	sub = {
        parent = "Egypt_WB_portrait" 
    }
}

EGY_subject_khedivate = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
    sub = {
        parent = "sub_EGY" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }
    }

	sub = {
        parent = "Egypt_WB_subject_portrait" 
    }	
}

EGY_subject_khedivate_GBR = {	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.75 } position = { 0.4 0.5 } }					
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.6 0.5 } }
	}

	textured_emblem = {
		texture = "wb_egy_puppet.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.55 0.69 } }
	}
}

EGY_subject_khedivate_GBR_post_1914 = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.28 } }		
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.72 } }		
		instance = { scale = { 0.22 0.22 } position = { 0.6 0.5 } }	
	}

	textured_emblem = {
		texture = "wb_egy_puppet.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.55 0.69 } }
	}
}

EGY_subject_khedivate_GBR_post_1923 = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.3 } rotation = -270 position = { 0.70 0.5 } }			
		instance = { scale = { 0.2 0.2 } position = { 0.55 0.38 } }	
		instance = { scale = { 0.2 -0.2 } position = { 0.55 0.62 } }		
	}

	textured_emblem = {
		texture = "wb_egy_puppet.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.55 0.69 } }
	}
}

EGY_subject_khedivate_TUR = {	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.7 0.65 } position = { 0.35 0.5 } }					
	}
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.6 0.5 } }
	}

	textured_emblem = {
		texture = "wb_egy_puppet.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.55 0.69 } }
	}
}

EGY_theocracy = {
	# Ayyubid banner
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	textured_emblem = {
		texture = "wb_egy_monarch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.45 0.72 } }
	}
}

EGY_wb_mamluk_sultanate = {
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.9 0.9 } position = { 0.35 0.5 } }					
	}

	sub = {
        parent = "Memeluks_WB_portrait" 
    }
}

## Persia ##

Persia_WB_portrait = {
	textured_emblem = {
		texture = "wb_per_monarch.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.38 0.6 } }
	}
}

Persia_WB_subject_portrait = {
	textured_emblem = {
		texture = "wb_per_monarch.dds"
		instance = { scale = { 1.15 1.15 } position = { 0.715 0.57 } }
	}
}

Persia_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_per_repub.dds"
		instance = { scale = { 1.6 1.6 } position = { 0.5 0.77 } }
	}
}

Persia_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_per_comm.dds"
		instance = { scale = { 1.9 1.9 } position = { 0.52 0.88 } }
	}
}

Persia_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_per_fasch.dds"
		instance = { scale = { 1.8 1.8 } position = { 0.55 0.8 } }
	}
}


PER = { # Persia
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.51 0.42 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.4 0.2 } position = { 0.50 0.65 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.51 0.42 } }		
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.5 0.02 } position = { 0.525 0.81 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.49 0.01 } position = { 0.525 0.805 } }		
	}	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.50 0.50 } }			
	}
	
	sub = {
        parent = "Persia_WB_portrait" 
    }
}
PER_absolute_monarchy = { 
	# Starting flag
	
	pattern = "pattern_border_of_3.dds"
	color1 = "white"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.46 0.42 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.25 } position = { 0.5 0.75 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.46 0.42 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.45 0.50 } }			
	}

	textured_emblem = {
		texture = "wb_per_monarch.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.38 0.6 } }
	}
	
	sub = {
        parent = "Persia_WB_portrait" 
    }
}
PER_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.51 0.465 } }			
	}	

	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.08 0.08 } position = { 0.51 0.465 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.10 } position = { 0.5 0.6 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.26 0.02 } position = { 0.51 0.66 } }		
	}	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.505 } }			
	}		

	sub = {
        parent = "Persia_WB_republican_portrait" 
    }
}
PER_dictatorship = {
	# removed crown from an imperial standard
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow_dark"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.50 0.46 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.1 } position = { 0.5 0.64 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { scale = { 0.08 0.08 } position = { 0.50 0.46 } }		
	}	
	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.25 0.015 } position = { 0.50 0.67 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow_dark"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.49 0.51 } }			
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "green"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.51 } }			
	}	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.6 0.8 } position = { 0 0 } }		
		instance = { scale = { 0.6 0.8 } position = { 1 0 } }		
		instance = { scale = { 0.6 0.8 } position = { 0 1 } }		
		instance = { scale = { 0.6 0.8 } position = { 1 1 } }				
	}
	
	sub = {
        parent = "Persia_WB_fascist_portrait" 
    }
}

PER_theocracy = {
	# flag of modern islamic republic would probably stand out too much
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.45 0.5 } }				
	}
	
	sub = {
        parent = "Persia_WB_republican_portrait" 
    }
}

PER_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.32 0.32 } position = { 0.76 0.45 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.2 0.1 } position = { 0.75 0.6 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.1 0.1 } position = { 0.76 0.45 } }		
	}

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.28 0.015 } position = { 0.765 0.67 } }		
	}	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.50 } }			
	}	
	
	sub = {
        parent = "Persia_WB_subject_portrait" 
    }
}
PER_fascist = {		
	# SUMKA flag
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sumka_stylized_eagle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
	
	sub = {
        parent = "Persia_WB_fascist_portrait" 
    }
}
PER_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.25 0.25 } position = { 0.745 0.45 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.2 0.1 } position = { 0.74 0.6 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.07 0.07 } position = { 0.745 0.45 } }		
	}
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.735 0.50 } }			
	}

	sub = {
        parent = "Persia_WB_subject_portrait" 
    }	
}

# WB originals

PER_communist = { 
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "green"
	
	colored_emblem = {
		texture = "wb_ce_kaveh.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.6 0.6 } position = { 0.3 0.3 } }
	}

	sub = {
        parent = "Persia_WB_communist_portrait" 
    }
}

PER_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "black"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }				
	}
	
	sub = {
        parent = "Persia_WB_communist_portrait" 
    }
}


## Ottoman Empire / Turkey ##

Ottotan_WB_portrait = {
	textured_emblem = {
		texture = "wb_tur_monarch_ottotan.dds"
		instance = { scale = { 2.0 2.0 } position = { 0.45 0.80 } }
	}
}

Turkey_WB_portrait = {
	textured_emblem = {
		texture = "wb_tur_repub_turkey.dds"
		instance = { scale = { 1.9 1.9 } position = { 0.6 0.75 } }
	}
}

Ottotan_WB_subject_portrait = {
	textured_emblem = {
		texture = "wb_TUR_sick_woman.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.79 0.6 } }
	}
}

Turkey_WB_subject_portrait = {
	textured_emblem = {
		texture = "wb_tur_repub_turkey.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.75 0.7 } }
	}
}

Ottotan_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_tur_fasch_ottotan.dds"
		instance = { scale = { 1.8 1.8 } position = { 0.6 0.75 } }
	}
}

Turkey_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_tur_comm_turkey.dds"
		instance = { scale = { 1.55 1.55 } position = { 0.5 0.6 } }
	}
}

Ottotan_WB_sick_woman_portrait = {
	textured_emblem = {
		texture = "wb_TUR_sick_woman.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.48 0.5 } }
	}
}


TUR = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.32 0.5 } }	
	}
	
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.58 0.50 } }		
		color1 = "white"
		color2 = "white"		
	}	

	sub = {
        parent = "Ottotan_WB_portrait" 
    }
}
TUR_monarchy = {
	# early 19th c. design without star
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }	
	}

	sub = {
        parent = "Ottotan_WB_portrait" 
    }	
}
TUR_republic = {
	# 1867 flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }	
	}	

	sub = {
        parent = "Turkey_WB_portrait" 
    }
}
TUR_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_sunburst.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 0.61 0.61 } }
	}
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.5 } }	
	}

	sub = {
        parent = "Ottotan_WB_fascist_portrait" 
    }		
}
TUR_theocracy = {
	pattern = "pattern_border_double.dds"
	color1 = "red"
	color2 = "white"
	color3 = "red"
	
	#colored_emblem = {
	#	texture = "ce_shahada.dds"
	#	color1 = "white"
	#	color2 = "white"		
	#	instance = { scale = { 0.9 1.1 } position = { 0.5 0.5 } }		
	#}		
	
	sub = {
        parent = "Ottotan_WB_portrait" 
    }
}
TUR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.70 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.87 0.50 } }		
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
	
	sub = {
        parent = "Ottotan_WB_subject_portrait" 
    }
}
TUR_republic_subject = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }	
	}	
	
	sub = {
        parent = "Turkey_WB_subject_portrait" 
    }
}
TUR_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.72 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_star_08.dds"	
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.83 0.50 } }			
	}	
	
	sub = {
        parent = "Ottotan_WB_subject_portrait" 
    }
}


#WB originals

TUR_communist = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "wb_ce_tkp_committee_logo.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.2 0.3 } }
	}

	sub = {
        parent = "Turkey_WB_communist_portrait" 
    }
}

TUR_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "black"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }	
	}
	
	sub = {
        parent = "Turkey_WB_communist_portrait" 
    }
}

TUR_sick_woman = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }	
	}	

	sub = {
        parent = "Ottotan_WB_sick_woman_portrait" 
    }
}

TUR_sick_woman_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.32 0.5 } }	
	}
	
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.58 0.50 } }		
		color1 = "white"
		color2 = "white"		
	}	

	sub = {
        parent = "Ottotan_WB_sick_woman_portrait" 
    }
}

## The Maghreb

## Algeria / Waifu Universalis' Algiers ## 

Algiers_WB_portrait = {
	textured_emblem = {
		texture = "wb_ald_default.dds"
		instance = { scale = { 1.6 1.6 } position = { 0.573 0.67 } }
	}
}

Algiers_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_ald_comm.dds"
		instance = { scale = { 1.6 1.6 } position = { 0.573 0.67 } }
	}
}

Algiers_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_ald_facsh.dds"
		instance = { scale = { 1.6 1.6 } position = { 0.573 0.67 } }
	}
}

ALD = { # Algeria
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
	
	sub = {
        parent = "Algiers_WB_portrait" 
    }
}
ALD_republic = {
	# Flag of the star of North Africa (base for the 1962 flag)
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Algiers_WB_portrait" 
    }	
}
ALD_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.5 }  }
	}		
	
	textured_emblem = {
		texture = "wb_ald_default.dds"
		instance = { scale = { 1.61 1.61 } position = { 0.65 0.67 } }
	}
}
ALD_subject_FRA = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*3] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7] } }
	}	
	
	sub = {
        parent = "Algiers_WB_portrait" 
    }
}

ALD_deylik = { # Deylik of Algiers
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}
	
	sub = {
        parent = "Algiers_WB_portrait" 
    }
}
ALD_barbary = { # Barbary
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.2222 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3333 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.4444 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5555 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.6666 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7777 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.8888 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9999 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.5 } position = { 0.00005 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.2 0.62 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.2 0.38 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.34 0.5 } }		
	}
	
	sub = {
        parent = "Algiers_WB_portrait" 
    }
}

# WB originals

ALD_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_hammer_and_sickle_round.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.9 0.9 } }
	}
	
	sub = {
        parent = "Algiers_WB_communist_portrait" 
    }
}

ALD_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Algiers_WB_fascist_portrait" 
    }	
}

ALD_deylik_Constantine = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}
	
	sub = {
        parent = "Constantine_WB_portrait" 
    }
}

ALD_barbary_Kabylia = { # Barbary
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.2222 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3333 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.4444 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5555 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.6666 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7777 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.8888 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9999 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.5 } position = { 0.00005 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.2 0.62 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.2 0.38 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.34 0.5 } }		
	}
	
	sub = {
        parent = "Kabylia_WB_portrait" 
    }
}

ALD_barbary_Touggourt = { # Barbary
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.2222 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3333 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.4444 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5555 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.6666 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7777 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.8888 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9999 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.5 } position = { 0.00005 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.2 0.62 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.2 0.38 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.34 0.5 } }		
	}
	
	sub = {
        parent = "Touggourt_WB_portrait" 
    }
}

ALD_subject_FRA_blank = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*3] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7] } }
	}	
}

ALD_anarchist = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "red"
	color2 = "black"	
	
	sub = {
        parent = "Algiers_WB_communist_portrait" 
    }
}

# Algier's Mascara flags

MAS = { # Mascara
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "white"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.32 0.32 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.50 0.50 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.48 0.48 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Algiers_WB_portrait" 
    }
}

MAS_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"


	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.32 0.32 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.50 0.50 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.48 0.48 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Algiers_WB_fascist_portrait" 
    }
}

MAS_communist = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "white"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}

	colored_emblem = {
		texture = "ce_stripe_center.dds"
		color1 = "red"
		color2 = "red"
	}

	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.50 0.50 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.48 0.48 } position = { 0.5 0.5 } }
	}
	
	colored_emblem = {
		texture = "ce_frame_circle_doted.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.48 0.48 } position = { 0.5 0.5 } }
	}
	
	colored_emblem = {
		texture = "ce_rising_sun.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.52 } }
	}
	
	sub = {
        parent = "Algiers_WB_communist_portrait" 
    }
}

## Ait Abbas / Waifu Universalis' Kabylia

Kabylia_WB_portrait = {
	textured_emblem = {
		texture = "wb_ait_abbas_default.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.575 0.665 } }
	}
}

Kabylia_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_ait_abbas_comm.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.575 0.665 } }
	}
}

Kabylia_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_ait_abbas_fasch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.575 0.665 } }
	}
}

AIT = { # Ait Abbas
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	
	colored_emblem = {
		texture = "wb_ce_ait_abbas_characters.dds"
		color1 = "yellow"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Kabylia_WB_portrait" 
    }
}

# WB originals

AIT_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	
	colored_emblem = {
		texture = "wb_ce_ait_abbas_characters.dds"
		color1 = "yellow"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Kabylia_WB_fascist_portrait" 
    }
}

AIT_communist = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Kabylia_WB_communist_portrait" 
    }
}

AIT_anarchist = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "red"
	color2 = "black"	
	
	sub = {
        parent = "Kabylia_WB_communist_portrait" 
    }
}

ALD_AIT_republic = {
	# Flag of the star of North Africa (base for the 1962 flag)
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Kabylia_WB_portrait" 
    }	
}
ALD_AIT_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_hammer_and_sickle_round.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.9 0.9 } }
	}
	
	sub = {
        parent = "Kabylia_WB_communist_portrait" 
    }
}

ALD_AIT_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Kabylia_WB_fascist_portrait" 
    }	
}

## Constantine

Constantine_WB_portrait = {
	textured_emblem = {
		texture = "wb_constantine_default.dds"
		instance = { scale = { 1.51 1.51 } position = { 0.53 0.67 } }
	}
}

Constantine_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_constantine_comm.dds"
		instance = { scale = { 1.51 1.51 } position = { 0.53 0.67 } }
	}
}

Constantine_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_constantine_fasch.dds"
		instance = { scale = { 1.51 1.51 } position = { 0.53 0.67 } }
	}
}

CON = { # Constantine
	pattern = "pattern_solid.tga"
	color1 = "red"
		
	colored_emblem = {
		texture = "ce_crossed_scimitars_horizontal.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Constantine_WB_portrait" 
    }
}

# WB originals

CON_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
		
	colored_emblem = {
		texture = "ce_crossed_scimitars_horizontal.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Constantine_WB_fascist_portrait" 
    }
}

CON_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
		
	colored_emblem = {
		texture = "ce_star_05_safcp.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.1 1 } position = { 0.1 0.5 } }
	}
	
	sub = {
        parent = "Constantine_WB_communist_portrait" 
    }
}

CON_anarchist = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "red"
	color2 = "black"	
	
	sub = {
        parent = "Constantine_WB_communist_portrait" 
    }
}

ALD_CON_republic = {
	# Flag of the star of North Africa (base for the 1962 flag)
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Constantine_WB_portrait" 
    }	
}
ALD_CON_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_hammer_and_sickle_round.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.9 0.9 } }
	}
	
	sub = {
        parent = "Constantine_WB_communist_portrait" 
    }
}

ALD_CON_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Constantine_WB_fascist_portrait" 
    }	
}

## Touggourt

Touggourt_WB_portrait = {
	textured_emblem = {
		texture = "wb_touggourt_default.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.53 0.72 } }
	}
}

Touggourt_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_touggourt_comm.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.53 0.72 } }
	}
}

Touggourt_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_touggourt_fasch.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.53 0.72 } }
	}
}

TUG = { # Touggourt
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.30 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "green"
		color2 = "green"	
		instance = { scale = { 1.0 1.0 } position = { 0.25 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.20 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }	
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }			
	}
	#colored_emblem = {
	#	texture = "ce_shahada.dds"
	#	color1 = "white"
	#	color2 = "white"	
	#	instance = { scale = { 0.60 0.60 } position = { 0.43 0.5 } }				
	#}
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.31 0.31 } position = { 0.83 0.50 } }			
	}
	
	sub = {
        parent = "Touggourt_WB_portrait" 
    }
}

# WB originals

TUG_republic = { 
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "blue"
		color2 = "blue"	
		instance = { scale = { 1.0 1.0 } position = { 0.30 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.25 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "blue"
		color2 = "blue"	
		instance = { scale = { 1.0 1.0 } position = { 0.20 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }	
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.31 0.31 } position = { 0.83 0.50 } }			
	}
	
	sub = {
        parent = "Touggourt_WB_portrait" 
    }
}

TUG_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.30 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "black"
		color2 = "black"	
		instance = { scale = { 1.0 1.0 } position = { 0.25 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.20 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }	
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.31 0.31 } position = { 0.83 0.50 } }			
	}
	
	sub = {
        parent = "Touggourt_WB_fascist_portrait" 
    }
}

TUG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.30 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "red"
		color2 = "red"	
		instance = { scale = { 1.0 1.0 } position = { 0.25 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_bicolor_left_third_indented.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.20 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }	
		instance = { scale = { 1.0 1.0 } position = { 0.9 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "yellow"
		color2 = "white"
		instance = { scale = { 0.31 0.31 } position = { 0.83 0.50 } }			
	}
	
	sub = {
        parent = "Touggourt_WB_communist_portrait" 
    }
}

TUG_anarchist = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "red"
	color2 = "black"	
	
	sub = {
        parent = "Touggourt_WB_communist_portrait" 
    }
}

ALD_TUG_republic = {
	# Flag of the star of North Africa (base for the 1962 flag)
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Touggourt_WB_portrait" 
    }	
}
ALD_TUG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_hammer_and_sickle_round.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.9 0.9 } }
	}
	
	sub = {
        parent = "Touggourt_WB_communist_portrait" 
    }
}

ALD_TUG_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}	

	sub = {
        parent = "Touggourt_WB_fascist_portrait" 
    }	
}
